package com.zerotwo.exam.center.service;

import com.zerotwo.exam.center.model.ExamQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zerotwo.exam.center.model.Question;

import java.util.List;


/**
 * @author 02
 * @version 1.0
 * @Date 2024/7/5
 * @Description 服务类
 */
public interface IExamQuestionService extends IService<ExamQuestion> {
    /**
     * 获取试卷题目信息
     *
     * @param id id
     * @return {@link Question}
     */
    List<Question> getQuestionByExamId(Integer id);

    /**
     * 得到考试问题
     *
     * @param examId     考试id
     * @param questionId 问题id
     * @return {@link ExamQuestion}
     */
    ExamQuestion getExamQuestion(int examId,int questionId);
}
